<?php

namespace App\Http\Controllers\Api;

use App\Http\Resources\CategoryResouce;
use App\Models\Category;

class CategoriesController extends Controller
{
    public function index()
    {
        CategoryResouce::wrap('data');
        return CategoryResouce::collection(Category::all());
    }
}
